{breadcrumbs}
	<a href="{$GLOBALS.site_url}/news-categories/">News Categories</a> 
	&#187; <a href="{$GLOBALS.site_url}/news-categories/?action=edit&amp;category_sid={$category.sid}">{$category.name}</a>
	&#187; <a href="{$GLOBALS.site_url}/news-categories/?action=edit&amp;category_sid={$category.sid}">Edit Category</a> 
	&#187; Edit Article
{/breadcrumbs}

<h1><img src="{image}/icons/linedpaperpencil32.png" border="0" alt="" class="titleicon"/>Edit Article</h1>

{include file='../classifieds/field_errors.tpl'}


<table>

	<form method="post" action="" enctype="multipart/form-data">
		<input type="hidden" name="category_id" value="{$category.sid}" />
		<input type="hidden" name="article_sid" value="{$article_sid}" />
		<input type="hidden" name="action" value="edit" />
        <input type="hidden" id="submit" name="form_submit" value="save_article"/>
		
		{foreach from=$form_fields item=form_field}
			{if $form_field.id == 'category_id'}
			<tr>
				<td valign="top">Move To Category:</td>
				<td valign="top">&nbsp;{if $form_field.is_required} <font color="red">*</font>{/if}</td>
				<td>
					<select name="article_category">
						<option value="">Select Category</option>
					{foreach from=$all_categories item=current_category}
						{if $current_category.sid != $category.sid}
						<option value="{$current_category.sid}">{$current_category.name}</option>
						{/if}
					{/foreach}
					</select>
				</td>
			</tr>
			{elseif $form_field.id == 'image'}
			<tr class="{cycle values = 'evenrow,oddrow' advance=false}">
				<td>{$form_field.caption}</td>
				<td valign="top">&nbsp;{if $form_field.is_required} <font color="red">*</font>{/if}</td>
				<td>{input property=$form_field.id template="picture_news.tpl"}</td>
			</tr>
			{else}
			<tr class="{cycle values = 'evenrow,oddrow' advance=false}">
				<td>{$form_field.caption}</td>
				<td valign="top">&nbsp;{if $form_field.is_required} <font color="red">*</font>{/if}</td>
				<td>{input property=$form_field.id}</td>
			</tr>
			{/if}
		{/foreach}
		
		<tr id="clearTable">
			<td colspan="3" align="right"><div class="floatRight"><input type="submit" name="form_submit" value="Update" class="greenButton"/></div></td>
		</tr>
	
	</form>
	
</table>